<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>考试信息页面</title>
<style>
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
  }
  .container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  h2 {
    text-align: center;
  }
  form {
    display: flex;
    flex-direction: column;
  }
  label {
    margin-top: 10px;
  }
  input[type="text"],
  textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  textarea {
    resize: vertical;
  }
  button {
    padding: 10px;
    margin-top: 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  button:hover {
    background-color: #4cae4c;
  }
</style>
</head>
<body>
<div class="container">
  <h2>考试信息填写</h2>
  <form id="examInfoForm" action="/To_java_class" method="post">
    <label for="subject">考试课程班:</label>
    <input type="text" id="subject" name="subject" required>

    <label for="examTime">考试时长:</label>
    <input type="number" id="examTime" name="examTime" placeholder="单位为分钟（数字）" required>
    <label for="examStartTime">考试开始时间（在右侧选择时间，选择完毕单击空白即可）:</label>
    <!-- 使用 type="datetime-local" 允许用户选择日期和时间 -->
    <input type="datetime-local" id="examStartTime" name="examStartTime" required>
    <label for="teacherMessage">教师寄语（可省略）:</label>
    <textarea id="teacherMessage" name="teacherMessage" rows="4" ></textarea>

    <button type="submit" >提交信息</button>
  </form>
</div>


</body>
</html>